package com.curve.util;

import org.jfree.data.time.TimeSeriesCollection;

/**
 * User: IBM
 * Date: 2008-4-29
 * Time: 11:38:08
 */
public class TimeSeriesChart {
   private String title, xLabel, yLabel;

	private TimeSeriesCollection dataset;


	private String dateFormat = "yyyy/MM/dd";

	private double min, max;
	private boolean isAutoRang;

	public TimeSeriesChart(String title, String xlabel, String ylabel,
			 TimeSeriesCollection dataset) {
		super();
		this.title = title;
		xLabel = xlabel;
		yLabel = ylabel;

		this.dataset = dataset;
		isAutoRang=true;
	}

	public TimeSeriesChart(String title, String xlabel, String ylabel,
			double min, double max, TimeSeriesCollection dataset) {
		this(title, xlabel, ylabel,  dataset);
		this.min = min;
		this.max = max;
		isAutoRang=false;
	}

	public boolean isAutoRang() {
		return isAutoRang;
	}

	public void setAutoRang(boolean isAutoRang) {
		this.isAutoRang = isAutoRang;
	}

	public double getMax() {
		return max;
	}

	public void setMax(double max) {
		this.max = max;
	}

	public double getMin() {
		return min;
	}

	public void setMin(double min) {
		this.min = min;
	}

	public String getDateFormat() {
		return dateFormat;
	}

	public void setDateFormat(String dateFormat) {
		this.dateFormat = dateFormat;
	}


	public TimeSeriesCollection getDataset() {
		return dataset;
	}

	public void setDataset(TimeSeriesCollection dataset) {
		this.dataset = dataset;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getXLabel() {
		return xLabel;
	}

	public void setXLabel(String label) {
		xLabel = label;
	}

	public String getYLabel() {
		return yLabel;
	}

	public void setYLabel(String label) {
		yLabel = label;
	}
}
